﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NorthwindEmployees.GridViewDetailsView;

namespace DisplayEmployees.Repeater
{
    public partial class DisplayEmployees : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                NorthwindEntities entities = new NorthwindEntities();
                this.EmployeesRepeater.DataSource = entities.Employees;
                this.EmployeesRepeater.DataBind();
                this.EmployeesListView.DataSource = entities.Employees;
                this.EmployeesListView.DataBind();
            }
        }
    }
}